<!-- start recent-posts -->
<div id="recent-posts">

	<?if ($this->inktype->is_logged_in()) {?>
	
		<div><h1>Welcome, <?=$this->session->userdata('display_name');?></h1></div>
		<p>Your Profile<br />
		<?=anchor('sessions/logout', 'Log Out');?></p>
		
	<?} else {?>
	
		<div><h1>Member Log In</h1></div>
		
		<p><?=anchor('sessions/login', 'Log In');?><br />
		<?=$this->inktype->anchor('register', 'Register');?></p>
	
	<?}?>

	<div><h1>Search</h1></div>
	<?=$this->inktype->form_open_search('search');?>
		<input type="text" name="search">
		<input type="submit" name="btn_search" value="Search">
	</form>
	
	<br />
	
	<div><h1>Categories</h1></div>
	<?foreach ($this->mdl_categories->get() as $category) {?>
	<h2><?=$this->inktype->anchor('category/' . $category->url_title, $category->category);?></h2>
	<?}?>
	
	<br />
	
	<div><h1>Links</h1></div>
	<?foreach ($this->mdl_blogroll->get() as $link) {?>
	<h2><a href="<?=$link->url;?>"><?=$link->title;?></a></h2>
	<?}?>
	
	<br />

</div>
<!-- end recent-posts -->